﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using GCELibrary.Current;
using ZF.BLL.ServiceModel;

namespace ZF.WS.service.btc
{
    public partial class fl : bopcontrol
    {



        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {
                var cacheKey = "Bottom_FLink11";

                List<Model.Sys_FLink> list = null;
                var obj = HttpCache.GetCache(cacheKey);
                if (obj != null && obj is List<Model.Sys_FLink>)
                {
                    list = obj as List<Model.Sys_FLink>;
                }
                else
                {
                    list = dc.Sys_FLink.ToList();
                    SiteInfo.Instance.SetPageCache(cacheKey, list);
                }

                this.lvIcon.DataSource = list.Where(p => p.IsImage).ToList();
                this.lvIcon.DataBind();
            }
        }

 
    }
}